package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_BoutiqueCart", catalog="Id")
public class TpBoutiqueCart extends BaseEntity<TpBoutiqueCart> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BoutiqueGoodsId", nameJava="boutiqueGoodsId", typeDataBase="bigint")
	private Long boutiqueGoodsId;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="NumBuyMin", nameJava="numBuyMin", typeDataBase="int")
	private Integer numBuyMin;
	@YsField(nameDataBase="NumPerBox", nameJava="numPerBox", typeDataBase="int")
	private Integer numPerBox;
	@YsField(nameDataBase="NumBox", nameJava="numBox", typeDataBase="int")
	private Integer numBox;
	@YsField(nameDataBase="NumAllot", nameJava="numAllot", typeDataBase="int")
	private Integer numAllot;
	@YsField(nameDataBase="Discount", nameJava="discount", typeDataBase="decimal")
	private BigDecimal discount;
	@YsField(nameDataBase="OriginPrice", nameJava="originPrice", typeDataBase="decimal")
	private BigDecimal originPrice;
	@YsField(nameDataBase="TotalPrice", nameJava="totalPrice", typeDataBase="decimal")
	private BigDecimal totalPrice;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="CreateUserId", nameJava="createUserId", typeDataBase="varchar")
	private String createUserId;
	@YsField(nameDataBase="CreateUserName", nameJava="createUserName", typeDataBase="varchar")
	private String createUserName;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpBoutiqueCart setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getBoutiqueGoodsId() {
		return boutiqueGoodsId;
	}
	public TpBoutiqueCart setBoutiqueGoodsId(Long boutiqueGoodsId) {
		this.boutiqueGoodsId = boutiqueGoodsId;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TpBoutiqueCart setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TpBoutiqueCart setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public Integer getNumBuyMin() {
		return numBuyMin;
	}
	public TpBoutiqueCart setNumBuyMin(Integer numBuyMin) {
		this.numBuyMin = numBuyMin;
		return this;
	}
	public Integer getNumPerBox() {
		return numPerBox;
	}
	public TpBoutiqueCart setNumPerBox(Integer numPerBox) {
		this.numPerBox = numPerBox;
		return this;
	}
	public Integer getNumBox() {
		return numBox;
	}
	public TpBoutiqueCart setNumBox(Integer numBox) {
		this.numBox = numBox;
		return this;
	}
	public Integer getNumAllot() {
		return numAllot;
	}
	public TpBoutiqueCart setNumAllot(Integer numAllot) {
		this.numAllot = numAllot;
		return this;
	}
	public BigDecimal getDiscount() {
		return discount;
	}
	public TpBoutiqueCart setDiscount(BigDecimal discount) {
		this.discount = discount;
		return this;
	}
	public BigDecimal getOriginPrice() {
		return originPrice;
	}
	public TpBoutiqueCart setOriginPrice(BigDecimal originPrice) {
		this.originPrice = originPrice;
		return this;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public TpBoutiqueCart setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public TpBoutiqueCart setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public TpBoutiqueCart setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public TpBoutiqueCart setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
		return this;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public TpBoutiqueCart setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpBoutiqueCart setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpBoutiqueCart setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpBoutiqueCart setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpBoutiqueCart tpBoutiqueCart(
		Long boutiqueGoodsId,
		String productCode,
		String productName,
		Integer numBuyMin,
		Integer numPerBox,
		Integer numBox,
		Integer numAllot,
		BigDecimal discount,
		BigDecimal originPrice,
		BigDecimal totalPrice,
		String vGsBm,
		String vGsJc,
		String createUserId,
		String createUserName,
		Integer status
			) {
		TpBoutiqueCart entity = new TpBoutiqueCart();
		entity.setBoutiqueGoodsId(boutiqueGoodsId);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setNumBuyMin(numBuyMin);
		entity.setNumPerBox(numPerBox);
		entity.setNumBox(numBox);
		entity.setNumAllot(numAllot);
		entity.setDiscount(discount);
		entity.setOriginPrice(originPrice);
		entity.setTotalPrice(totalPrice);
		entity.setVGsBm(vGsBm);
		entity.setVGsJc(vGsJc);
		entity.setCreateUserId(createUserId);
		entity.setCreateUserName(createUserName);
		entity.setStatus(status);
		return entity;
	}
}